subscribeToPushNotifications

public abstract void subscribeToPushNotifications(String packageName, String deviceToken, String realm, PushSubscriptionCallback callback)

This method registers application to push notifications. Fail and success calls will be transmitted through the completion block. If the registration is successfull, a deviceID will be returned which can be used to update or remove the push subscription.

Since

4.6.0

Parameters

packageName

application's packageName

deviceToken

device token generated by the PushKit

realm

realm of the push server

callback

block implementation that will be used to return success or fail